package com.heima.admin.service.Impl;

import com.heima.api.admin.IUserClient;
import com.heima.model.admin.dtos.UserAuthDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.admin.service.UserAuthService;
import lombok.RequiredArgsConstructor;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserAuthServiceImpl implements UserAuthService {
    @Autowired
    private  IUserClient userClient;

    /**
     * 分页查询
     * @param userAuthDto
     * @return
     */
    @Override
    public ResponseResult getList(UserAuthDto userAuthDto) {
        ResponseResult list = userClient.getList(userAuthDto);
        return list;
    }


    /**
     * 审核失败
     * @param userAuthDto
     * @return
     */
    @Override
    public ResponseResult authFail(UserAuthDto userAuthDto) {
        ResponseResult authFail = userClient.authFail(userAuthDto);
        return authFail;
    }

    /**
     * 审核成功
     * @param userAuthDto
     * @return
     */
    @Override
    public ResponseResult authPass(UserAuthDto userAuthDto) {
        ResponseResult authPass = userClient.authPass(userAuthDto);
        return authPass;
    }
}
